cmake_minimum_required(VERSION 3.16)

project(BoostPyTuto LANGUAGES CXX)

find_package(PythonLibs 3.8.10 REQUIRED)
find_package(Boost REQUIRED COMPONENTS python)

include_directories(include
                    ${Boost_INCLUDE_DIRS}
                    ${PYTHON_INCLUDE_DIRS})

# add_subdirectory(resources)

add_library(hello_ext SHARED src/hello_world.cpp)

add_library(hello SHARED src/expose_class.cpp)

add_executable(xml_test src/xml_test.cpp)

target_link_libraries(hello_ext ${Boost_LIBRARIES})
target_link_libraries(hello ${Boost_LIBRARIES})
target_link_libraries(xml_test libtinyxml2.so)


set_target_properties(hello_ext PROPERTIES
                                  PREFIX ""
                                  )

set_target_properties(hello PROPERTIES
                                PREFIX ""
                                )
